package com.ruoyi.attendance.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 员工排班管理对象 schedule_management
 * 
 * @author ruoyi
 * @date 2025-05-30
 */
public class ScheduleManagement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 排班ID，主键 */
    private Long id;

    /** 用户ID，关联员工表 */
    @Excel(name = "用户ID，关联员工表")
    private Long userId;

    /** 用户职位（冗余存储） */
    @Excel(name = "用户职位", readConverterExp = "冗=余存储")
    private String userPosition;

    /** 排班日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "排班日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date scheduleDate;

    /** 原(排班详情，JSON格式存储具体排班信息) -&gt; 新(排班规则id) */
    @Excel(name = "原(排班详情，JSON格式存储具体排班信息) -&gt; 新(排班规则id)")
    private Long attendancePoliciesId;

    /** 删除标志（0代表存在 2代表删除） */
    private Long delFlag;

    /** 记录创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setUserPosition(String userPosition) 
    {
        this.userPosition = userPosition;
    }

    public String getUserPosition() 
    {
        return userPosition;
    }

    public void setScheduleDate(Date scheduleDate) 
    {
        this.scheduleDate = scheduleDate;
    }

    public Date getScheduleDate() 
    {
        return scheduleDate;
    }

    public void setAttendancePoliciesId(Long attendancePoliciesId) 
    {
        this.attendancePoliciesId = attendancePoliciesId;
    }

    public Long getAttendancePoliciesId() 
    {
        return attendancePoliciesId;
    }

    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userPosition", getUserPosition())
            .append("scheduleDate", getScheduleDate())
            .append("attendancePoliciesId", getAttendancePoliciesId())
            .append("delFlag", getDelFlag())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
